const getTimestamp = function (time) {
  time = (new Date(time)).getTime();
  return time;
}